package com.zxtech.zzm.core.util

import android.content.Context

class CommonUtil {
  /**
   * 子模块和主模块需要共享全局上下文，故需要在app module初始化时传入
   */
  companion object {
    private lateinit var mAppContext: Context
    fun getAppContext(): Context {
      return mAppContext
    }

    fun init(context: Context) {
      mAppContext = context.applicationContext
    }
  }
}